errorCode

open fun errorCode(): NetError

Returns the URL request error code. In case the request has failed, contains the error code of the network. Otherwise, has the default NET_ERROR_UNSPECIFIED value.